package edu.cicese.alz.reports;

import org.jfree.chart.axis.SymbolAxis;
import org.jfree.chart.renderer.LookupPaintScale;

import java.awt.Color;

/**
 * Created by: Eduardo Quintana Contreras
 * Date: 10/08/12
 * Time: 05:23 PM
 */
public class FrameGPSBlock extends FrameBlock {

	public FrameGPSBlock(
			int userID, long startTime,
			Color colorNoData, Color colorHome, Color colorOut) {

		super(userID, startTime);

		title = "GPS - Subject: " + userID;

		paintScale = new LookupPaintScale(0.5, 3.5, colorNoData);
		paintScale.add(0.5, colorNoData);
		paintScale.add(1.5, colorHome);
		paintScale.add(2.5, colorOut);

		symbolAxis = new SymbolAxis(null, new String[]{"", "No Data", "Home", "Out"});
		symbolAxis.setRange(0.5, 3.5);
	}
}
